package com.aaa.system.service;

import com.aaa.entity.Dept;
import com.aaa.system.vo.DeptVo;
import com.aaa.vo.Result;
import com.baomidou.mybatisplus.core.metadata.IPage;

import java.util.List;

public interface DeptService {

    Result<List<Dept>> findAllDept();

    Result<IPage<Dept>> findListDept(DeptVo deptVo);

    Result<Boolean> saveOrUpdate(Dept dept);

    Result<Boolean> deleteDept(Long deptId);

    Result<Boolean> bachDel(Long[] deptIds);

    /**
     * 远程调用
     *根据部门id查询部门信息
     */
    Dept getAllDeptByDeptId(Long deptId);
}
